﻿namespace TechMadeira.Workflows
{
    class OrderStateReturned : OrderState
    {
        public override string Name
        {
            get { return "Returned"; }
        }

        public override void Prepare()
        {
            OrderWorkflow.Instance.Current = OrderWorkflow.Instance.Prepared;
        }

        public override void Refund()
        {
            OrderWorkflow.Instance.Current = OrderWorkflow.Instance.Canceled;
        }
    }
}
